package com.feicheng.service;


import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.feicheng.entity.Warehouse;
import com.feicheng.model.UserAndWarehouse;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zhennan.liu
 * @since 2022-07-04
 */
public interface IWarehouseService extends IService<Warehouse> {

    /**
     * 通过仓库管理员id查询仓库id
     * @author zhennan.liu
     * @param userId
     * @return
     */
    Integer selectByid(Integer userId);


    /**
     * 通过查询条件查询仓库列表，分页
     * @author lu.yu
     * @param pageInfo
     * @param wrapper
     * @return
     */
    Page<UserAndWarehouse> getByPage(Page<UserAndWarehouse> pageInfo, Wrapper wrapper);

}
